page {
  box-sizing: border-box;
  font-family: PingFang SC, PingFang SC;
}

view,
text,
input,
textarea,
image,
scroll-view {
  box-sizing: border-box;
  font-family: PingFang SC, PingFang SC;
}

input {
  font-size: 24rpx;
}
image {
  vertical-align: top;
  width: 10rpx;
  height: fit-content;
}

map {
  margin: 0;
  padding: 0;
}

slider {
  margin: 0;
}

.flex {
  display: flex;
  align-items: center;
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-start {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.flex-j-e {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.flexc {
  display: flex;
  flex-direction: column;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex1 {
  flex: 1;
}
.over {
  overflow: auto;
}
.column-flex-center {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ellipsis-1 {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.ellipsis-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 2;
}
.ellipsis-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 3;
}
.ellipsis-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 4;
}
.ellipsis-5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 5;
}

.fit-text {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
}

.no-scroll-x {
  max-width: 100%;
  overflow-x: hidden;
}

.safe-fixed-bottom {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100vw;
  height: 120rpx;
  height: calc(120rpx + constant(safe-area-inset-bottom));
  height: calc(120rpx + env(safe-area-inset-bottom));
  background: #fff;

  // box-shadow: 0rpx -8rpx 20rpx 2rpx rgba(0, 0, 0, 0.06);
  box-shadow: 0rpx -4rpx 10rpx 1rpx rgba(0, 0, 0, 0.06);
  padding: 20rpx 20rpx;
  padding-bottom: 20rpx;
  padding-bottom: calc(20rpx + constant(safe-area-inset-bottom));
  padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
}

// web端顶部用边距填充默认导航栏的占位展示问题
.web-fixed-top {
  /* #ifdef WEB */
  padding-top: 100rpx !important;
  /* #endif */
}
